package com.zbkj.common.model.card;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商城礼品配置实体
 *
 * @author Swallows
 * @date 2022-10-06 09:01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_store_gift")
@ApiModel(value="StoreGift对象", description="礼品配置表")
public class StoreGift implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "礼品ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 绑定的礼品卡配置id
     */
    @ApiModelProperty("绑定的礼品卡配置id")
    private Integer cardConfigId;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    private Integer productId;

    /**
     * 推荐图
     */
    @ApiModelProperty(value = "推荐图")
    private String image;

    @ApiModelProperty(value = "轮播图")
    private String images;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    private String title;

    /**
     * 活动属性
     */
    @ApiModelProperty(value = "活动属性")
    private String attr;

    @ApiModelProperty(value = "简介")
    private String info;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "成本价")
    private BigDecimal cost;

    @ApiModelProperty(value = "原价")
    private BigDecimal otPrice;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "添加时间")
    private Long addTime;

    @ApiModelProperty(value = "商品状态")
    private Boolean isShow;

    private Boolean isDel;

    @ApiModelProperty(value = "是否包邮1是0否")
    private Boolean isPostage;

    @ApiModelProperty(value = "邮费")
    private BigDecimal postage;

    @ApiModelProperty(value = "单位名")
    private String unitName;

    @ApiModelProperty(value = "运费模板ID")
    private Integer tempId;

    @ApiModelProperty(value = "重量")
    private BigDecimal weight;

    @ApiModelProperty(value = "体积")
    private BigDecimal volume;

    /**
     * 单次兑换数量
     */
    @ApiModelProperty(value = "单次兑换数量")
    private Integer num;

    @ApiModelProperty(value = "每个订单可购买数量")
    private Integer onceNum;

    /**
     * 限购总数 随销量递减
     */
    @ApiModelProperty(value = "兑换总数 随销量递减")
    private Integer quota;

    /**
     * 限购总数显示 不变
     */
    @ApiModelProperty(value = "兑换总数显示 不变")
    private Integer quotaShow;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "规格 0单 1多")
    private Boolean specType;
}
